﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Effects.GUI
{
    /// <summary>
    ///  Delegate for ShowWaveHeghtChanged event. 
    /// </summary>
    /// <remarks>
    ///  ShowWaveHeightChanged event is raised by ShowWave class when it's height has changed. It is used to adjust parent containers of ShowWave.
    /// </remarks>
    /// <param name="sender"> Object that raised the event </param>
    /// <param name="e"> Event arguments </param>
    public delegate void ShowWaveHeightChangedDelegate(object sender,ShowWaveHeightChangedEventAgrs e);
    
    /// <summary>
    ///  Event arguments for ShowWaveHeightChangedEvent.
    /// </summary>
    public class ShowWaveHeightChangedEventAgrs:EventArgs
    {
        /// <summary>
        /// Height of the show wave.
        /// </summary>
        private int height;

        /// <summary>
        ///  Gets height of the show wave.
        /// </summary>
        public int Height
        {
            get { return height; }
        }

        /// <summary>
        ///  Creates new event args with given height.
        /// </summary>
        /// <param name="height"> Height of the ShowWave </param>
        public ShowWaveHeightChangedEventAgrs(int height)
        {
            this.height = height;
        }
    }
}
